package com.example.healthmanagement.dao;

import com.example.healthmanagement.entity.CookBook;
import com.example.healthmanagement.entity.FoodRem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FoodRemRepository extends JpaRepository<FoodRem, Long> {

    List<FoodRem> findFoodRemsByDeleted(Boolean deleted);

    FoodRem findFoodRemsById(int id);

    List<FoodRem> findFoodRemByFoodCatNameAndDeleted(String cateName, boolean deleted);

    List<FoodRem> findFoodRemByBmiLevelAndDeleted(int bmiId, boolean deleted);

    List<FoodRem> findFoodRemsByDeletedAndNameContaining(boolean deleted, String key);
}
